#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include <string.h>

void my_strcpy(char* arr_p, const char* arr_c)
{
	int i = 0;
	for (i = 0; *(arr_c + i) != '\0'; i++)
	{
		*(arr_p + i) = *(arr_c + i);
	}
	*(arr_p + i) = '\0';
}

int main()
{
	char arr1[10] = "abcdefghi";
	char arr2[10];
	my_strcpy(arr2, arr1);
	printf("%s \n", arr2);
	return 0;
}